package com.yao.mymvc.handlermapping.iface;

import javax.servlet.http.HttpServletRequest;

/**
 * 定义处理器映射器的编写规范，主要功能就是根据请求获取handler
 * 
 * @author yao
 *
 */
public interface HandlerMapping {

	/**
	 * 根据请求查找处理器
	 * 
	 * @param request
	 * @return
	 * @throws Exception
	 */
	Object getHandler(HttpServletRequest request) throws Exception;
}
